- contacts ||= @sales_firm.contacts
.panel.panel-default
  .panel-heading
    .panel-title
      |联系人
      = link_to_md_dialog '新增', new_sales_contact_path(firm_id: @sales_firm.id), class: 'btn btn-xs btn-info push-10-l', style: 'color:white'
      .pull-right
        = expand_body_button
  .panel-body
    table.table.table-bordered
      tr
        th 姓名
        th 称谓
        th 职位
        th 电话
        th 手机
        th 邮箱
      - contacts.each do |c|
        tr
          td
            = link_to c.name, c
            = c.key_person_flag
          td= c.salutation
          td= c.position
          td= [c.phone,c.phone_ext].compact.join('-')
          td= c.mobile
          td= c.email
